how to learn squares and cubes